import request from '@/utils/request'
// 充值待审核数量
export function apiMemberBalanceRecordCountByState(data) {
    return request({
        method: 'post',
        url: '/memberBalanceRecord/countRecordByState',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 充值 分页
export function apiMemberBalanceRecordPage(data) {
    return request({
        method: 'post',
        url: '/memberBalanceRecord/getMerchantBalanceRecordPage',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 充值导出
export function apiMemberBalanceRecordExport(data) {
    return request({
        method: 'post',
        url: '/memberBalanceRecord/getMerchantBalanceRecordExport',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 充值申请
export function apiMemberBalanceRecharge(data) {
    return request({
        method: 'post',
        url: '/memberBalance/recharge',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 退款申请
export function apiMemberBalanceRefund(data) {
    return request({
        method: 'post',
        url: '/memberBalance/refund',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// dingding 认证Info

export function apiGetDingtalkUserInfo(authCode) {
    return request({
        method: 'post',
        url: `/common/getDingtalkUserInfo?authCode=${authCode}`,
        data: {},
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 审批详情
export function apiGetOneApprovalInfoByQuery(data) {
    return request({
        method: 'post',
        url: `/approvalInfo/getOneApprovalInfoByQuery`,
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 详情
export function apiMemberBalanceRecordDetail(data) {
    return request({
        method: 'post',
        url: `/memberBalanceRecord/memberBalanceRecordDetail`,
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
